import java.util.Scanner;

public class HeroController {
    public static void zhaoyun() {
        zhaoyun zhaoyun = new zhaoyun();
        Scanner sc = new Scanner(System.in);
        System.out.println("你现在成为了赵云,输入空格进行下一步");
        String s = sc.next();
        System.out.println("你遇见了野怪，请选择技能");
        System.out.println("1.气贯长虹   2.白龙救主   3.此乃长坂坡,诸宵小皆退散！4.语言嘲讽");
        lo:
        while (true) {
            int choice = sc.nextInt();
            switch (choice) {
                case 1:
                    zhaoyun.startFirstAbility();
                    break;
                case 2:
                    zhaoyun.startSecondAbility();
                    break;
                case 3:
                    zhaoyun.startThirdAbility();
                    System.out.println("你战胜了对手");
                    break lo;
                case 4:
                    zhaoyun.said();
                    break;
            }
        }
    }

    public static void xiangyu() {
        Xiangyu xiangyu = new Xiangyu();
        Scanner sc = new Scanner(System.in);
        System.out.println("你现在成为了项羽,输入空格进行下一步");
        String s = sc.next();
        System.out.println("你遇见了刘邦，请选择技能");
        System.out.println("1.天下无双   2.霸王临世   3.虞兮虞兮奈若何..  4.语言嘲讽");
        lo:
        while (true) {
            int choice = sc.nextInt();
            switch (choice) {
                case 1:
                    xiangyu.startFirstAbility();
                    break;
                case 2:
                    xiangyu.startSecondAbility();
                    break;
                case 3:
                    xiangyu.startThirdAbility();
                    System.out.println("你战胜了对手");
                    break lo;
                case 4:
                    xiangyu.said();
                    break;
            }
        }
    }
}


